package ${project.group}.${project.name}.vehicle;

import com.allen.library.SuperTextView;
import com.chad.library.adapter.base.BaseViewHolder;
import com.idogfooding.backbone.ui.rv.RVAdapter;
import ${project.group}.${project.name}.R;


public class VehicleListAdapter extends RVAdapter<Vehicle, BaseViewHolder> {

    public VehicleListAdapter() {
        super(R.layout.common_item);
    }

    @Override
    protected void convert(BaseViewHolder holder, Vehicle data) {


        SuperTextView textView = holder.getView(R.id.root_item);
        textView.setLeftIcon(R.mipmap.car_active);
        textView.setLeftTopString(data.getEntpName());
        textView.setLeftBottomString(data.getVehicleNo() );
        textView.setRightBottomString(" ");
        textView.setRightBottomString(data.getScore()+"分");
        //holder.setText(R.id.iccid, );
    }
}
